package com.kylin.common.core.exception;

import com.kylin.common.core.beans.ResultCode;
import com.kylin.common.core.beans.GlobalResultCode;

/**
 * 业务异常
 *
 * @author wuhao
 * @version 1.0 - 2019-02-11
 */
public class ServiceException extends BaseException {

    public ServiceException() {
        super(GlobalResultCode.SERVICE_EXCEPTION);
    }

    public ServiceException(int code, String msg) {
        super(code, msg);
    }

    public ServiceException(String message) {
        super(GlobalResultCode.SERVICE_EXCEPTION.getCode(), message);
    }

    public ServiceException(ResultCode resultCode){
        super(resultCode);
    }


}
